package zcx;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.02.09.09.42
 */
@Ann(name = "姚迅于")
@Ann(name="王嘉宾")
public class TextAnn {
    public static void main(String[] args) {
        var c=TextAnn.class;
        if(c.isAnnotationPresent(Ann.class)){
           var ann=c.getAnnotation(Ann.class);
            System.out.println(ann.sex());
            System.out.println(ann.age());
            System.out.println(ann.name());
        }
    }
}
